﻿using System.Data.Entity;

namespace Jet.Dal.EF.Implementation.Contexts
{
	internal class DbContext2<TEntity1, TEntity2> : DbContext1<TEntity1> where TEntity1 : class where TEntity2 : class
	{
#pragma warning disable 0169
		// ReSharper disable UnusedMember.Local
		protected DbSet<TEntity2> DbSet2 { get; set; }
	// ReSharper restore UnusedMember.Local
#pragma warning restore 0169

		public DbContext2(string connectionString, bool lazyLoadingAllowed, bool allowProxyCreation)
			: base(connectionString, lazyLoadingAllowed, allowProxyCreation)
		{

		}

		static DbContext2()
		{
			Database.SetInitializer<DbContext2<TEntity1, TEntity2>>(null);
		}	
	}
}
